package com.zm.demo.core.pattern.abstractfactory;

/**
 * Created by Administrator on 2019/7/29.
 */
public class CarDistributor1 {


    public static void main(String[] args){

        CarFactory hfFactory = CarFactoryFactory.getCarfactory("HF");
        CarBody carBodyHF = hfFactory.createCarBody();
        CarWheel carWheelHF = hfFactory.createCarWheel();

        CarFactory qqFactory = CarFactoryFactory.getCarfactory("QQ");
        CarBody carBodyQQ = qqFactory.createCarBody();
        CarWheel carWheelQQ = qqFactory.createCarWheel();
    }


}
